// http://stackoverflow.com/questions/20534702/node-js-use-of-module-exports-as-a-constructor

function Person(name){
	this.name = name;
}

// Person.prototype.sayHi()  x error
Person.prototype.sayHi = function(){
	console.log(this.name);
}

module.exports = Person;

// In another module:
// var MyObjectOrSomeCleverName = require("./my_object.js");
// var my_obj_instance = new MyObjectOrSomeCleverName("foobar");
// my_obj_instance.foo(); // => "foobar"